<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('college/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
	<tr>
		<th><p style = "font-style:bold">Description</p></th>
		<td><textarea id="editor1" name="editor1"><?php echo $form->getObject()->getDescription(); ?></textarea></td>
	</tr>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('college/index') ?>">Retourner</a>
		  
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Supprimer', 'college/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Vous etes sur?')) ?>
          <?php endif; ?>
          <input type="submit" value="Sauvergarder" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table>
</form>
<script type="text/javascript">
	
	CKEDITOR.replace( 'editor1',
		{
        toolbar : 'Full',
        uiColor : '#656a6d'
    }
	);
</script>